<?php
    session_start();
    require_once "../../config/tanggal.php";
    require_once "../dao/database.php";
    require_once "product_view.php";
    
    
    $class_db = new Database;
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<?php 
include_once("../../config/tanggal.php");
include_once("../dao/login.php");
$log = new Login_Dao($class_db);
//$page;
?>
<!DOCTYPE html>

<html>
<head>

<title>
Cookies Land - is all bout fulfill ur desire 
</title>


<title>Cookies Land : All bout fulfill your desire</title>

<!-- Bootstrap -->
<link type="text/css" rel="stylesheet" href="css/bootstrap.min.css">
<link type="text/css" href="css/bootstrap-responsive.css" rel="stylesheet">
<!-- Bootstrap -->

<link href="../../public/style.css" rel="stylesheet" type="text/css" />
<!--<script type="text/javascript" src="js/jquery.min.js"></script>-->
<link href="css/hompimenu.css" rel="stylesheet">
<!--fancybox-->

<!-- Add jQuery library -->
<script type="text/javascript" src="lib/jquery-1.8.2.min.js"></script>
<script type="text/javascript" src="lib/jquery.js"></script> <!-- tambahan sg paling akhir/bisa dihapus klo diperlukan -->
	

	<!-- Add mousewheel plugin (this is optional) -->
	<script type="text/javascript" src="lib/jquery.mousewheel-3.0.6.pack.js"></script>

	<!-- Add fancyBox main JS and CSS files -->
	<script type="text/javascript" src="source/jquery.fancybox.js?v=2.1.3"></script>
	<link rel="stylesheet" type="text/css" href="source/jquery.fancybox.css?v=2.1.2" media="screen" />

	<!-- Add Button helper (this is optional) -->
	<link rel="stylesheet" type="text/css" href="source/helpers/jquery.fancybox-buttons.css?v=1.0.5" />
	<script type="text/javascript" src="source/helpers/jquery.fancybox-buttons.js?v=1.0.5"></script>

	<!-- Add Thumbnail helper (this is optional) -->
	<link rel="stylesheet" type="text/css" href="source/helpers/jquery.fancybox-thumbs.css?v=1.0.7" />
	<script type="text/javascript" src="source/helpers/jquery.fancybox-thumbs.js?v=1.0.7"></script>

	<!-- Add Media helper (this is optional) -->
	<script type="text/javascript" src="source/helpers/jquery.fancybox-media.js?v=1.0.5"></script>
    <!--sidemenu-->
    <link rel="stylesheet" type="text/css" href="css/sidemenu.css" />
    
    <!--end sidemenu--> 
    <script type="text/javascript" src="jquery.bgpos.js"></script>  
    
<!--flexslider-->
<link rel="stylesheet" href="css/flexslider.css" type="text/css">

<link rel="stylesheet" type="text/css" href="css/styles.css" />

<link rel="stylesheet" type="text/css" href="css/paging.css" />

<script src="js/jquery.flexslider.js"></script>

<script type="text/javascript" charset="utf-8">
  $(window).load(function() {
    $('.flexslider').flexslider();
    animation: "slide"
  });
</script>
<!--end of flexslider-->

<!--fancybox-->
	<script type="text/javascript">
		$(document).ready(function() {
			/*
			 *  Simple image gallery. Uses default settings
			 */

			$('.fancybox').fancybox();

		});
	</script>
    
	<style type="text/css">
		.fancybox-custom .fancybox-skin {
			box-shadow: 0 0 50px #222;
		}
	</style>
    
    
    
<!--end of fancybox-->

<!--menu hover-->
<script type="text/javascript">
$(function() {
    $('.hompimenu li').hover(function() {
        $(this).children('ul').filter(':not(:animated)').slideDown(400);
    }, function() {
        $(this).children('ul').slideUp(400);
    });
});
</script>
<!--end menu -->


</head>
<body>
    <!-- Start Header-->
	<div class="container">
            <div class="row">
            <div class="span3">
                <div class="span4 logo">
                    <a href="index.html"><img alt="" src="img/cookies-land.jpg" /></a>
                </div>
                </div>
            <div class="span9">    
            <div class="row">
                <div class="link pull-right">
                    <a href="about.php">Tentang Kami</a> |
                    <a href="contact.php">Hubungi Kami</a>
                </div>
            </div>
			<div class="row">
                <div class="link pull-right">
					<a>Hi,</a>
                    <a href="my_account.php"><i class="icon-user" ></i>
					<?php /*if(isset($_SESSION['loggedinuser'])){
					if($log->getUserName()!=""){
						echo $log->getUserName();
						}*/
                        if($log->getUserName()!=""){
                         echo $log->getUserName();
						}else {
						echo "GUEST";
						}
                        
						?></a>
                    </div>
            </div>
			<div class="row">
                <div class="link pull-right">
                <?php
					$my_t=getdate(date("U"));
					print("$my_t[weekday], $my_t[month] $my_t[mday], $my_t[year]");
				?>     
                </div>
            </div>
            </div>
            </div>
            <!-- End Header-->
			
	<!-- Start Navigation Bar -->
	<div class="row">
                <div class="span12">
	<div class="navbar ">
	<div class="navbar-inner">        
	<ul class="nav">
	<li><a href="index.php"><i class="icon-home icon-white"></i> Beranda</a></li>
    <li><a href="blog_view.php"><i class="icon-pencil icon-white"></i> Blog</a>        
    </li>
    <li><a href="testimoni_view.php"><i class="icon-file icon-white" ></i> Testimoni</a></li>
	</ul>    
	<ul class="nav pull-right">
	<li class="divider-vertical"></li>
    <form class="navbar-search" method="get" action="search_view.php">
    <input class="search-query  span2" placeholder="search" type="text" name="keyword"/>
    <button class="btn btn-primary btn-small" type="submit" name="Submit" value="Submit">Cari</button>
    </form>
<li class="divider-vertical"></li>
	<li>
	<?php if(isset($_SESSION['loggedinuser'])){

					?>					

				<a href="logout_aksi.php"><i class="icon-off icon-white " ></i> Log out</a>
				<?php 
				
				}
				else { ?>
				<a href="loginpage.php"><i class="icon-off icon-white " ></i> Login</a>
				<?php
				}
				?>
	</li>
	</ul>    
    </div>

	
	

	</div>
	</div>
	</div>
	<!-- End Navigation Bar-->
	</div>